<?php
namespace app\common\validate;

use think\Validate;

class CmsMoudleValidate extends Validate
{
    // 验证规则
    protected $rule = [
        'moudle_name|模型名称' => 'require',
        'table_name|模型表名'  => 'require|alpha',
    ];
    //验证场景
    protected $scene = [
        'add'  => ['moudle_name', 'table_name'],
        'edit' => ['moudle_name'],
    ];
}